import Vue from 'vue'
import Router from 'vue-router'


//懒加载模式
const Login =() => import('@/components/Login')
const Home =() => import('@/components/Home')
const Products =() => import('@/components/Products')
const NotFound =() => import('@/components/NotFound')
const Fst08 =() =>import('@/components/Fst08')

Vue.use(Router)

export default new Router(

    {

        routes:[
            {
              path:'/Home',
              name:'Home',
              component:Home
            },
             {
              path:'/Login',
              name:'Login',
              component:Login
            },
            {
              path:'/Products',
              name:'Products',
              component:Products
            },
            {
              path: '/NotFound',
              name: 'NotFound',
              component: NotFound
            },
            {
              path: '/Fst08',
              name: 'Fst08',
              component: Fst08
            }
        ],

        mode:'history',
        base:process.env.BASE_URL,
        meta:{
            keepAlive:true,  // 需要缓存
            isKeep:false
        }
    }
)